package com.lsh.payment.core.service.refund;

import com.alibaba.fastjson.JSONObject;
import com.lsh.payment.api.model.refund.RefundRequest;
import com.lsh.payment.core.model.payenum.PayChannel;
import com.lsh.payment.core.model.refund.PayRefund;

/**
 * Project Name: lsh-payment
 *
 * @author peter
 * @date 18/7/10
 * 北京链商电子商务有限公司
 * Package
 * desc:
 */
public interface IRefundBuilder {
    /**
     * 生成退款单
     * @param refundRequest
     * @param payChannel
     * @return
     */
    PayRefund builderRefundOrder(RefundRequest refundRequest, PayChannel payChannel);

    /**
     * 初始化ext
     * @param refundRequest
     * @return
     */
    JSONObject builderRefundExt(RefundRequest refundRequest);
}
